import axios from "../../axios.js";

export default{
  //查询所有,带分页
  GETCUSTOMERLIST(data,binding)
  {
    return axios({
      url:'/customerOriginal/list',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  
  GETLENDHISTORY(data)
  {
    return axios({
      url:'/customerOriginal/listOriginalHistory',
      method:'post',
      data
    })
  },

  //获取借出原件
  GETLENDORIGINAL(data)
  {
    return axios({
      url:'/customerOriginal/selectOriginalBorrowByUser',
      method:'post',
      data,
    })
  },

   //查询所有客户
   GETCUSTOMER(data)
   {
     return axios({
       url:'/customerArchives/selectDepartmentCustomerNew2',
       method:'get',
       params:data
     })
   },
   
   //删除原件
   DELETEORGIN(data)
   {
     return axios({
       url:'/customerOriginal/delete',
       method:'post',
       data
     })
   },


   //获取详情数据
   GETDETAILS(data,binding)
   {
     return axios({
       url:'/customerOriginal/details',
       method:'post',
       data,
       headers:{
         "binding": binding
       }
     })
   },

  //获取详情数据
  GETDETAILSBORROW(data,binding)
  {
    return axios({
      url:'/customerOriginal/detailsBorrow',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //获取借出历史详情 
  getHistoryDetail(data)
  {
    return axios({
      url:'/customerOriginal/getHistoryDetail',
      method:'get',
      params:data,
    })
  },

  //单个新增
  ADDORIGINAL(data,binding){
    return axios({
      url:'/customerOriginal/insert',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //单个删除
  DELETEARCHIVES(data,binding){
    return axios({
      url:'/customerOriginal/delete',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //单个编辑
  EDITARCHIVES(data,binding){
    return axios({
      url:'/customerOriginal/update',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },


  //借出提交  
  BORROWLEND(data,binding){
    return axios({
      url:'/customerOriginal/borrowInsert',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //原件归还  
  RETURN(data,binding){
    return axios({
      url:'/customerOriginal/returnInsert',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },


  //借出详情  
  BORROWLENDDETAILS(data,binding){
    return axios({
      url:'/customerOriginal/borrowReturnDetails',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //获取借出人
GETLENDER(data,binding){
    return axios({
      url:'/customerOriginal/selectDepUser',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },

   //获取借出人中心
   GETLENDCENTER(data,binding){
    return axios({
      url:'/customerOriginal/selectDep',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },

   //获取借出人部门
   GETLENDBUMEN(data,binding){
    return axios({
      url:'/customerOriginal/selectDep',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },

  //证件大类
  GETALLTYPE(data,binding){
    return axios({
      url:'/customerOriginal/selectCustomerOriginalType',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //证件类型
  GETTYPE(data,binding){
    return axios({
      url:'/customerOriginal/selectCustomerOriginalType',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

   //审核管理跳转借出详情
   GET_DETAILS2(data){
    return axios({
      url:'/customerOriginal/detailsBorrow2',
      method:'get',
      params:data,
    })
  },

  //获取原件新增明细 
  getCustomerOriginalDetail(data){
    return axios({
      url:'/customerOriginal/getCustomerOriginalDetail',
      method:'get',
      params:data,
    })
  },

  //原件收录列表 
  getCustomerOriginallist(data){
    return axios({
      url:'/customerOriginal/listAdd',
      method:'post',
      data,
    })
  },

   //原件收录导出
   excelExport(data,fileName,conditions){
    return axios({
      url:'/customerOriginal/excelExport?' + 'fileName='+fileName + '&conditionStr=' + conditions,
      method:'get',
      params: data,
    })
  },

};
